package cn.stronglink.asset.module.basicdata.tRoom.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import cn.stronglink.asset.model.TRoom;
import cn.stronglink.asset.module.basicdata.tRoom.vo.RoomTreeNodeVo;

public interface TRoomMapper {
	
	public List<TRoom> queryTRoom(Pagination page,@Param("params") Map<String, Object>  params);
	
	public void removeTRoom(@Param("id")Long id);

	public void insertTRoom(TRoom tRoom);

	public void updateTRoom(TRoom tRoom);

	public List<TRoom> queryRoomList();
	
	public List<TRoom> queryAllRoomList();

	public int qryRoomCount();

	public TRoom qryRoomByName(@Param("roomName") String roomName);

	public List<TRoom> getRoomByUser();

	public Long getRoomIdByRack(@Param("rackCode") String rackCode);

	public TRoom qryRoomNameById(@Param("roomId") String roomId);

	public Long qryRoomByCode(@Param("roomCode") String roomCode);

	public Integer getRoomType(@Param("roomId") Long roomId);

	public List<RoomTreeNodeVo> queryRoomListTree();

	public List<RoomTreeNodeVo> queryRackList(@Param("roomId") String id);

	public HashMap<String, Object> queryRoomU(@Param("roomId") Long id);

	public List<TRoom> queryRoomListByParams(@Param("params")Map<String, Object> params);

	public List<RoomTreeNodeVo> qryRackTree(@Param("roomId") Long roomId);

	public String qryById(@Param("id") String room_id);

}
